package com.zmj.sy.mom.srv.aps.feign;

import com.zmj.sy.mom.srv.aps.bean.dto.wms.MesPicking;
import com.zmj.sy.mom.srv.aps.bean.vo.aps.ApsWireStockCountReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.aps.ApsWireStockCountResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.Result;
import com.zmj.sy.mom.srv.aps.bean.vo.report.ReportWireStockResVo;
import feign.Request;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(url = "http://172.31.3.23:9030/", name = "wmsLtkApiClient")
public interface WmsLtkApiClient {

    // 立体库接口
    @GetMapping("/wirePlanChange/wireRepertory")
    Result<List<ReportWireStockResVo>> ltkInfo(Request.Options options);

    // 根据物料号列表查询库存数量
    @GetMapping("/apswire/stockCount")
    List<ApsWireStockCountResVo> stockCount(@RequestBody ApsWireStockCountReqVo reqVo, Request.Options options);

    // 发送外购件领料单
    @PostMapping("/mesApply/pickingApplyInAps")
    Result pickingApplyInAps(@RequestBody List<MesPicking> pickingList);

    // 删除外购件领料单
    @PostMapping("/apswire/deletePickIng")
    Result deletePickIng(@RequestBody List<MesPicking> reqList);

}
